<template>
<div class="main">
<div v-on:click="GetOrderNum()">获取定单编号</div>
  <div>{{all_myrest_CreateKnowledgeGroupOrder}}</div>
</div>
</template>
<script>
  import stores from './mystore.js'
  import Vue from 'vue';
  import { XButton, XInput,Group, Tab, TabItem } from 'vux'
  import { mapGetters,mapActions } from 'vuex'
  import sha1 from 'js-sha1'

  export default {
      data(){
          return {
              shujudata:'',
              dengludata:'',
              mypayload:{
              },
              GroupOrderPayload:{
                  url:'baseapi',
                  actionName:"CreateKnowledgeGroupOrder",
                  postData: {
                    //7137e4996b4c419fb97e9559a63a3109
                      //"knowledgeGroupIds":["216a47711ba04db7b432c708543eb1e1"], 1b44bc9a552b44f88ef2f9c50dfd4f16
                      "knowledgeGroupIds":["1b44bc9a552b44f88ef2f9c50dfd4f16"],

                  }
              },

          }
      },

      computed:{
          all_myrest_CreateKnowledgeGroupOrder(){
              var dataval=this.$store.getters.all_restful_CreateKnowledgeGroupOrder;
              if(dataval){
                  this.shujudata=dataval;
                  return dataval.body
              }else{
                  alert(4)
                  return null
              }
              //return dataval;
          },

      },
      created (){
          //this.cntReady()

      },

      methods:{
          GetOrderNum:function(){
            this.$store.commit('restful_api',this.GroupOrderPayload);
          },
      },
      components: { XButton, Group, XInput, Tab, TabItem }

  }

</script>

<style scoped>

</style>
